package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @author retoc
 * @description 针对表【tb_user(用户表)】的数据库操作Mapper
 * @createDate 2022-05-01 20:00:13
 * @Entity com.retoc.oawx.domain.User
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    public boolean haveRootUser();

    public int insertUser(HashMap param);

    public Integer searchIdByOpenId(String openId);

    public Set<String> searchUserPermissions(int userId);

    public User searchById(int userId);

    public HashMap searchNameDept(int userId);

    public String searchUserHiredate(int userId);

    public ArrayList<HashMap> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap> searchMembers(List param);

    public HashMap searchUserInfo(int userId);

    public int searchDeptManagerId(int id);

    public int searchGmId();

    public List<HashMap> selectUserPhotoAndName(List param);

    public ArrayList<HashMap> searchUserContactList();

    public long searchUserCountInDept(int deptId);

    public int searchUserIdByEmail(String email);

    public int activeUserAccount(HashMap param);

    public int updateUserInfo(HashMap param);

    public int deleteUserById(int id);
}




